package com.wsj.service.system;

import javax.servlet.http.HttpServletRequest;

import com.wsj.util.exception.BusinessException;

public interface IApplicationUtil 
{

	/*****
	 * 获取请求前面的名称
	 */
	public String getDealerNameFromURL(HttpServletRequest request)throws BusinessException;
	
	/**
	 * 从二级别域名中得到对应经销商的ID号，如果没有找到 又 或者是 http://www.qqddc.com/ || http://qqddc.com/ 访问进来的 就返回 0；
	 * @param request
	 * @return int 
	 * @throws BusinessException
	 */
	int getDealerIdFromURL(HttpServletRequest request) throws BusinessException;
	
	
	

}
